import React from 'react';

class CustomElement extends React.Component {
  constructor(props) {
    super(props);
  }

  render() {
    let content = null;

    if (window.rewritePortalCusEle && typeof window.rewritePortalCusEle === 'function') {
      const props = { client: 'mobile', ...this.props };
      content = window.rewritePortalCusEle(props, {});
    }

    return <div className="content">{content}</div>;
  }
}

export default CustomElement;
